package com.x.Part12_Object.equalsApply;

/**
 * ClassName: CustomerTest
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.02.29 21:02
 */
public class CustomerTest {
    public static void main(String[] args) {

        Customer c1 = new Customer("001","hx",new Account(1000));
        Customer c2 = new Customer("001","hx",new Account(1000));

        System.out.println(c1.equals(c2));//不重写equals，false
        System.out.println(c1.equals(c2));//重写后还是false
        //因为Account中没有重写equals
    }
}
